home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / CLOBSH.PAK / CLSTYPES.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  3KB  |  107 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  CLSTYPES.H                                                            */
  4. /*                                                                        */
  5. /*  Copyright Borland International 1991, 1993                            */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __CLSTYPES_H )
  11. #define __CLSTYPES_H
  12.  
  13. #define BI_OLDNAMES
  14.  
  15. #if !defined( __DEFS_H )
  16. #include <_defs.h>
  17. #endif  // __DEFS_H
  18.  
  19. #if !defined( __LIMITS_H )
  20. #include <limits.h>
  21. #endif
  22.  
  23. #pragma option -Vo-
  24. #if defined( __BCOPT__ ) && !defined( __FLAT__ ) && !defined( _ALLOW_po )
  25. #pragma option -po-
  26. #endif
  27.  
  28. typedef unsigned int classType;
  29. typedef unsigned int hashValueType;
  30. typedef unsigned int sizeType;
  31.  
  32. _CLASSDEF(Object)
  33.  
  34. typedef void ( _FAR *iterFuncType )( class Object _FAR &, void _FAR * );
  35. typedef int ( _FAR *condFuncType )( const class Object _FAR &, void _FAR * );
  36. typedef int    countType;
  37.  
  38. enum
  39. {
  40.     objectClass,
  41.     errorClass,
  42.     sortableClass,
  43.     stringClass,
  44.     listElementClass,
  45.     doubleListElementClass,
  46.     containerClass,
  47.     stackClass,
  48.     queueClass,
  49.     dequeClass,
  50.     collectionClass,
  51.     hashTableClass,
  52.     bagClass,
  53.     setClass,
  54.     dictionaryClass,
  55.     associationClass,
  56.     arrayClass,
  57.     sortedArrayClass,
  58.     listClass,
  59.     doubleListClass,
  60.     timeClass,
  61.     dateClass,
  62.     btreeClass,
  63.     priorityQueueClass,
  64.     __firstOWLClass = 100,
  65.     __lastLibClass = 255,
  66.     __firstUserClass,
  67.     __lastClass = UINT_MAX
  68. };
  69.  
  70. enum ClassLib_errors
  71. {
  72.     __EfirstError, // don't remove
  73.     __EDELERROR,
  74.     __EEXPANDFS,
  75.     __EEXPANDLB,
  76.     __ENOMEM,
  77.     __ENOTSORT,
  78.     __ENOTASSOC,
  79.     __EORDER3,
  80.     __ENOMEMIA,
  81.     __ENOMEMLN,
  82.     __EPRBADCLASS,
  83.     __EPRINCONS,
  84.     __EBNZERODIV,
  85.     __EBNILLLOG,
  86.     __EBNNOMEM,
  87.     __ERANDOM2SMALL,
  88.     __EBNTEMPSTKOVFL,
  89.     __EBNTEMPSTKUNFL,
  90.     __EBN2MANYTEMPS,
  91.     __EBN2BIG2PRINT,
  92.     __EBNNOMEM4PRINT,
  93.     __EBNRESULT2BIG,
  94.     __ERNG2BIG,
  95.     __EBNSQRTILLEGAL,
  96.     __ElastError   // don't remove
  97. };
  98.  
  99. void ClassLib_error( ClassLib_errors, _TCHAR _FAR *addstr = 0 );
  100.  
  101. #if defined( __BCOPT__ ) && !defined( __FLAT__ ) && !defined( _ALLOW_po )
  102. #pragma option -po.
  103. #endif
  104. #pragma option -Vo.
  105.  
  106. #endif
  107.